@echo off

setlocal

if exist install.bat goto ok
echo install.bat must be run from its folder
goto end

:ok

set OLDGOPATH=%GOPATH%
set GOPATH=%~dp0;%OLDGOPATH%
::echo %GOPATH%
gofmt -w src

::go install Parser
::go install TorrentSpider
go  install File2Magnet

:end
echo finished